﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Castle.MicroKernel.Registration;
using Castle.Facilities.Logging;

namespace MyStore.PresentationModel.Installers
{
    public class LoggerInstaller : IWindsorInstaller
    {
        #region IWindsorInstaller 成员

        void IWindsorInstaller.Install(Castle.Windsor.IWindsorContainer container, Castle.MicroKernel.SubSystems.Configuration.IConfigurationStore store)
        {
            container.AddFacility<LoggingFacility>(f => f.UseLog4Net());
        }

        #endregion
    }
}